package com.ltu.domain.mp_entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ltu.domain.BaseEntity;
import com.ltu.domain.mp_entity.customize.CompanyEntity;

import lombok.experimental.Accessors;

/**
 * <p>
 * 后台管理=代理商
 * </p>
 * @author 若尘
 * @since 2024-03-16
 */
@Accessors(chain = true)
@TableName("sys_account")
@ApiModel(value="AccountEntity对象", description="后台管理=代理商")
public class AccountEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

		  @ApiModelProperty(value = " user_name:账号 ")
		 		  private String userName;
    	  @ApiModelProperty(value = " real_name:真实名字 ")
		 		  private String realName;
    	  @ApiModelProperty(value = " user_type:默认都是1代理商0平台 ")
		 		  private Integer userType;
    	  @ApiModelProperty(value = " role_id:角色ID ")
		 		  private String roleId;
    	  @ApiModelProperty(value = " role_name:角色名称 ")
		 		  private String roleName;
    	  @ApiModelProperty(value = " user_phone:手机号码 ")
		 		  private String userPhone;
    	  @ApiModelProperty(value = " password:密码2次md5 ")
		 		  private String password;
    	  @ApiModelProperty(value = " open_id: ")
		  private String openId;
    	  @ApiModelProperty(value = " remark:备注 ")
		 		  private String remark;
    	  @ApiModelProperty(value = " enable:状态默认1,0禁用，1使用 ")
		 		  private Integer enable;
    	  @ApiModelProperty(value = " create_time:创建时间 ")
		 		  private Date createTime;
    	  @ApiModelProperty(value = " last_login_time:最近登录时间 ")
		 		  private Date lastLoginTime;
    	  @ApiModelProperty(value = " over_time:账号过期时间 ")
		 		  private Date overTime;
    	  @ApiModelProperty(value = " login_count:登录计数器 ")
		 		  private Integer loginCount;
    	  
    	  @ApiModelProperty(value = "主叫号码")
 		  private String srcPhone;
    	  
    	  @ApiModelProperty(value = "客户销售经理：0下线1在线默认0")
    	  private Boolean onlineState;
    	  
    	  @TableField(exist = false)
    	  private String loginToken;
    	  
    	  

    	
    	  
  
		
		
		public String getSrcPhone() {
			return srcPhone;
		}
		public void setSrcPhone(String srcPhone) {
			this.srcPhone = srcPhone;
		}
		public Boolean getOnlineState() {
			return onlineState;
		}
		public void setOnlineState(Boolean onlineState) {
			this.onlineState = onlineState;
		}
		public String getLoginToken() {
			return loginToken;
		}
		public void setLoginToken(String loginToken) {
			this.loginToken = loginToken;
		}
			/**
		 * 账号
		 */
	    public String getUserName() {
	        return userName;
	    }
		/**
		 * 账号
		 */
	    public AccountEntity setUserName(String userName) {
	       this.userName = userName;
	        return this;
	    }
		/**
		 * 真实名字
		 */
	    public String getRealName() {
	        return realName;
	    }
		/**
		 * 真实名字
		 */
	    public AccountEntity setRealName(String realName) {
	       this.realName = realName;
	        return this;
	    }
		/**
		 * 默认都是1代理商0平台
		 */
	    public Integer getUserType() {
	        return userType;
	    }
		/**
		 * 默认都是1代理商0平台
		 */
	    public AccountEntity setUserType(Integer userType) {
	       this.userType = userType;
	        return this;
	    }
		/**
		 * 角色ID
		 */
	    public String getRoleId() {
	        return roleId;
	    }
		/**
		 * 角色ID
		 */
	    public AccountEntity setRoleId(String roleId) {
	       this.roleId = roleId;
	        return this;
	    }
		/**
		 * 角色名称
		 */
	    public String getRoleName() {
	        return roleName;
	    }
		/**
		 * 角色名称
		 */
	    public AccountEntity setRoleName(String roleName) {
	       this.roleName = roleName;
	        return this;
	    }
		/**
		 * 手机号码
		 */
	    public String getUserPhone() {
	        return userPhone;
	    }
		/**
		 * 手机号码
		 */
	    public AccountEntity setUserPhone(String userPhone) {
	       this.userPhone = userPhone;
	        return this;
	    }
		/**
		 * 密码2次md5
		 */
	    public String getPassword() {
	        return password;
	    }
		/**
		 * 密码2次md5
		 */
	    public AccountEntity setPassword(String password) {
	       this.password = password;
	        return this;
	    }
		/**
		 * 
		 */
	    public String getOpenId() {
	        return openId;
	    }
		/**
		 * 
		 */
	    public AccountEntity setOpenId(String openId) {
	       this.openId = openId;
	        return this;
	    }
		/**
		 * 备注
		 */
	    public String getRemark() {
	        return remark;
	    }
		/**
		 * 备注
		 */
	    public AccountEntity setRemark(String remark) {
	       this.remark = remark;
	        return this;
	    }
		/**
		 * 状态默认1,0禁用，1使用
		 */
	    public Integer getEnable() {
	        return enable;
	    }
		/**
		 * 状态默认1,0禁用，1使用
		 */
	    public AccountEntity setEnable(Integer enable) {
	       this.enable = enable;
	        return this;
	    }
		/**
		 * 创建时间
		 */
	    public Date getCreateTime() {
	        return createTime;
	    }
		/**
		 * 创建时间
		 */
	    public AccountEntity setCreateTime(Date createTime) {
	       this.createTime = createTime;
	        return this;
	    }
		/**
		 * 最近登录时间
		 */
	    public Date getLastLoginTime() {
	        return lastLoginTime;
	    }
		/**
		 * 最近登录时间
		 */
	    public AccountEntity setLastLoginTime(Date lastLoginTime) {
	       this.lastLoginTime = lastLoginTime;
	        return this;
	    }
		/**
		 * 账号过期时间
		 */
	    public Date getOverTime() {
	        return overTime;
	    }
		/**
		 * 账号过期时间
		 */
	    public AccountEntity setOverTime(Date overTime) {
	       this.overTime = overTime;
	        return this;
	    }
		/**
		 * 登录计数器
		 */
	    public Integer getLoginCount() {
	        return loginCount;
	    }
		/**
		 * 登录计数器
		 */
	    public AccountEntity setLoginCount(Integer loginCount) {
	       this.loginCount = loginCount;
	        return this;
	    }




}
